﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Dynamics.BusinessConnectorNet;
using PJ.Framework.DynamicsAx;

namespace PJ.Framework.DynamicsAX.AxClass
{
    public sealed class PJServiceInventory : AbstractAxClass
    {
        internal PJServiceInventory(AxaptaObject axObject)
            : base(axObject)
        {
        }

        public static AxaptaContainer findBarCode(string inventItemID)
        {
            return (AxaptaContainer)AxConnection.Instance.StaticMethod(GetClassName(), "findBarcode", inventItemID);
        }

        public static AxaptaContainer findSalesParam(string inventItemID)
        {
            return (AxaptaContainer)AxConnection.Instance.StaticMethod(GetClassName(), "findSalesParam", inventItemID);
        }

        public static AxaptaContainer findUnit(string inventItemID)
        {
            return (AxaptaContainer)AxConnection.Instance.StaticMethod(GetClassName(), "findUnit", inventItemID);
        }

        public static AxaptaContainer findItem(string inventItemID)
        {
            return (AxaptaContainer)AxConnection.Instance.StaticMethod(GetClassName(), "findItem", inventItemID);
        }

        private static string GetClassName()
        {
            return "PJServiceInventory";
        }
    }
}
